/* eslint-disable */
import { request } from 'umi';
import bodyParse from '@/utils/bodyParse';

//角色列表
export async function role(params) {
  return request('/vehicle-api/role' + bodyParse(params));
}

//角色列表
export async function area(params) {
  return request('/vehicle-api/area' + bodyParse(params));
}

//角色列表
export async function device_count(params) {
  return request('/vehicle-api/device/device_count' + bodyParse(params));
}

//角色列表
export async function history_record(params) {
  return request('/vehicle-api/device_alarm/history_record' + bodyParse(params));
}

//用户列表
export async function user(params) {
  return request('/vehicle-api/user' + bodyParse(params));
}
